<?php
class Api_Row_Works extends Zend_Db_Table_Row_Abstract {
	protected $_date;
	
	public function __construct($config) {
		parent::__construct ( $config );
		$this->_date = new Zend_Date ( $this->date, Zend_Date::TIMESTAMP );
		$this->_data ['year'] = $this->_date->get ( Zend_Date::YEAR );
	}
	
	public function getYear() {
		return $this->_date->get ( Zend_Date::YEAR );
	}
	
	public function url() {
		return Zend_Controller_Front::getInstance ()->getRouter ()->assemble ( array ("controller" => "authors", "action" => "index" ), null, true );
	}
}